import axios from './init'

export interface Role {
  id:number
  roleName:string,
  roleDesc?:string
}
export const editRole = async (role:Role) => {
  console.log(role)
  const { data } = await axios.put(`roles/${role.id}`, role)
  return data
}
